<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>增加广告</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/highlight/styles/atom-one-light.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="ad_main.php">广告管理</a></li><li><span>增加广告</span></li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form action="ad_add.php" method="post" name="form1">
<input name="normbody[style]" type="hidden" value="code" id="adstyle"/>
<input type="hidden" name="token" value="<?php echo make_hash();?>"/>
<input type="hidden" name="dopost" value="save"/>
<tbody>
<!-- 选项 -->
<tr>
<td colspan="2">
<h5 class="uk-h4">广告代码的调用方法：</h5>
<pre><code class="lang-html xml">{ dede:myad name='广告位标识'/}</code></pre>
</td>
</tr>
<tr>
<td>广告位标识：</td>
<td><input name="tagname" type="text" id="tagname" class="uk-input uk-form-small uk-form-width-large"/> （使用英文或数字表示的简洁标识）</td>
</tr>
<tr>
<td width="8%">广告分类：</td>
<td><select name="clsid" id="clsid" class="uk-select uk-form-small uk-form-width-large">
<option value="0">默认分类...</option>
<?=$option;?>
</select></td>
</tr>
<tr>
<td>广告投放范围：</td>
<td>
<select name='typeid' class="uk-select uk-form-small uk-form-width-large">
<?php
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,0,0);
echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>\r\n";
echo $typeOptions;
?>
</select>
（如果在所选栏目找不到指定标识的广告内容，系统会自动搜索父栏目）
</td>
</tr>
<tr>
<td>广告位名称：</td>
<td><input name="adname" type="text" id="adname" class="uk-input uk-form-small uk-form-width-large"/></td>
</tr>
<tr>
<td>广告内容：</td>
<td>
<ul class="uk-form-width-large" uk-tab>
<li><a href="#">代码</a></li>
<li><a href="#">文字</a></li>
<li><a href="#">图片</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li>
<div class="uk-margin">
<textarea name="normbody[htmlcode]" rows="5" cols="50" class="uk-textarea uk-form-small uk-form-width-large"></textarea><br/>
请填写广告代码，支持html代码
</div>
</li>
<li>
<div class="uk-margin">
<input type="text" name="normbody[title]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="文字内容"/>
</div>
<div class="uk-margin">
<input type="text" name="normbody[link]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="文字链接"/>
</div>
<div class="uk-margin">
<input name="normbody[color]" class="uk-input uk-form-small" type="color" placeholder="#000000" style="width: 50px;"/> 文字颜色
</div>
<div class="uk-margin">
<input type="text" name="normbody[size]" class="uk-input uk-form-small" style="width: 50px;"/> 文字大小 (例如:4px,12px)
</div>
</li>
<li>
<div class="uk-margin">
<input type="text" name="normbody[url]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="图片地址"/>
</div>
<div class="uk-margin">
<input type="text" name="normbody[link]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="图片链接"/>
</div>
<div class="uk-margin">
<input type="text" name="normbody[width]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="图片宽度"/>
</div>
<div class="uk-margin">
<input type="text" name="normbody[height]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="图片高度"/>
</div>
<div class="uk-margin">
<input type="text" name="normbody[descrip]" class="uk-textarea uk-form-small uk-form-width-large" placeholder="图片描述"/>
</div>
</li>
</ul>
</td>
</tr>
<tr>
<td>时间限制：</td>
<td>
<label for="notimelimit"><input name="timeset" type="radio" id="notimelimit" value="0" checked="1" class="uk-radio"/> 永不过期</label> &nbsp;&nbsp;
<label for="timelimit"><input type="radio" name="timeset" id="timelimit" value="1" class="uk-radio"/> 在设内时间内有效</label>
</td>
</tr>
<tr>
<td>投放时间：</td>
<td>从
<div class="uk-inline">
<span class="uk-form-icon uk-icon" uk-icon="icon: calendar4-week"></span>
<input name="starttime" value="<?=$startDay?>" class="uk-input uk-form-small uk-form-width-large" style="width: 230px;" type="datetime-local" >
</div>
到
<div class="uk-inline">
<span class="uk-form-icon uk-icon" uk-icon="icon: calendar4-week"></span>
<input name="endtime" value="<?=$endDay?>" class="uk-input uk-form-small uk-form-width-large" style="width: 230px;" type="datetime-local" >
</div>
</td>
</tr>
<tr>
<td>过期显示内容：</td>
<td><textarea name="expbody" rows="10" id="expbody" style="height:100" class="uk-textarea uk-form-small uk-form-width-large"></textarea></td>
</tr>
<!-- /选项 -->
</tbody>
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/highlight/highlight.pack.js"></script>
<!-- / JS FILES -->
</body>
</html>
